{{--Modal News--}}
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="false">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="mySmallModalLabel">Newsletter</h4>
            </div>
            <div class="modal-body">
                ​<script type="text/javascript" src="http://v2.envialosimple.com/form/show/AdministratorID/50573/FormID/1/format/widget"></script>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>
{{--Fin Modal News--}}

<div class="container-fluid">
    <div class="navbar navbar-default" role="navigation">
        <div class="row">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{{ URL::route('home') }}"><h3 class="nombre">KARINA KRETH</h3></a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-right">
                    @foreach($menu->all() as $item)
                        {{-- Sin subitems --}}
                        @if(isset($item->link))
                        <li>
                            {{ $item->link }}
                        </li>
                        
                        {{-- Con subitems --}}
                        @elseif(isset($item->menu))
                        <li class="dropdown">
                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                {{ $item->title }} <span class="caret"></span>
                            </a>
                            <ul class="dropdown-menu" role="menu">
                                @foreach($item->menu->all() as $subItem)
                                    @if(isset($subItem->link))
                                    <li>
                                        <a href="{{ $subItem->link }}">{{ $subItem->title }}</a>
                                    </li>
                                    @endif
                                @endforeach
                            </ul>
                        </li>
                        @endif
                    @endforeach
                </ul>
            </div> {{-- .navbar-collapse .collapse --}}
        </div> {{-- .row --}}
    </div> {{-- .navbar .navbar-default --}}
</div> {{-- .container-fluid --}}